/**
 * 兑换下载
 * @param {*} body 
 * @returns 
 */
export const useDuhuanDownloadsApi = (code,downloadsId) => {
    return useHttpPost(`/v1/downloads/code/dh?downloadsId=${downloadsId}&code=${code}`,{})
}

/**
 * 学习币兑换资源
 * @param {*} body
 * @returns
 */
export const useDuhuanCoinDownloadApi = (downloadsId) => {
    return useHttpPost(`/v1/downloads/coin/dh?downloadsId=${downloadsId}`,{})
}